//
//  HHaaViewController.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "HHaaViewController.h"

@interface HHaaViewController () <
UITextViewDelegate,
UIScrollViewDelegate,
UICollectionViewDelegateFlowLayout,
UICollectionViewDataSource,
UICollectionViewDelegate
>

@property (nonatomic, strong) UITextView *VSAVASV;

@property (nonatomic, strong) UIScrollView *VCXVASC;

@property (nonatomic, strong) UIScrollView *FADSFAS;

/// FSDF2RVSDAVDFA数据源
@property (nonatomic, strong) NSMutableArray *data;

/// FSDF2RVSDAVDFACollectionViewLayout
@property (nonatomic, strong) UICollectionViewFlowLayout *collectionViewFlowLayout;

@property (nonatomic, strong) UICollectionView *FSDF2RVSDAVDFA;

@end

@implementation HHaaViewController

#pragma mark - # Delegate
//MARK: UIScrollViewDelegate
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
	
}

- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
	
}

- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
	
}

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
	
}

- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView {
	
}

//MARK: UICollectionViewDataSource
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
	return 0;
}

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
	return 0;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UICollectionViewDelegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
	
}

#pragma mark - # Life Cycle
- (void)loadView {
	[super loadView];
	[self.view addSubview:self.VSAVASV];
	[self.view addSubview:self.VCXVASC];
	[self.view addSubview:self.FADSFAS];
	[self.VCXVASC addSubview:self.FSDF2RVSDAVDFA];
}

- (void)viewDidLoad {
	[super viewDidLoad];
}

#pragma mark - # Getter
- (UITextView *)VSAVASV {
	if (!_VSAVASV) {
		_VSAVASV = [[UITextView alloc] init];
		[_VSAVASV setDelegate:self];
		[_VSAVASV setText:@"TVFASFDFAFDSAVASDGVADGASGASFGSADGFGAAFGAFDGAFDGAFGAFG"];
		[_VSAVASV setTextColor:[UIColor blackColor]];
		[_VSAVASV setTextAlignment:NSTextAlignmentCenter];
		[_VSAVASV setBorderStyle:UITextBorderStyleLine];
	}
	return _VSAVASV;
}

- (UIScrollView *)VCXVASC {
	if (!_VCXVASC) {
		_VCXVASC = [[UIScrollView alloc] init];
		[_VCXVASC setDelegate:self];
	}
	return _VCXVASC;
}

- (UIScrollView *)FADSFAS {
	if (!_FADSFAS) {
		_FADSFAS = [[UIScrollView alloc] init];
		[_FADSFAS setShowsVerticalScrollIndicator:YES];
		[_FADSFAS setShowsHorizontalScrollIndicator:YES];
		[_FADSFAS setDelegate:self];
	}
	return _FADSFAS;
}

- (NSMutableArray *)data {
	if (!_data) {
		_data = [[NSMutableArray alloc] init];
	}
	return _data;
}

- (UICollectionViewFlowLayout *)collectionViewFlowLayout {
	if (!_collectionViewFlowLayout) {
		_collectionViewFlowLayout = [[UICollectionViewFlowLayout alloc] init];
		[_collectionViewFlowLayout setMinimumLineSpacing:0];
		[_collectionViewFlowLayout setMinimumInteritemSpacing:0];
		[_collectionViewFlowLayout setItemSize:CGSizeMake(0, 0)];
		[_collectionViewFlowLayout setHeaderReferenceSize:CGSizeMake(0, 0)];
		[_collectionViewFlowLayout setFooterReferenceSize:CGSizeMake(0, 0)];
		[_collectionViewFlowLayout setSectionInset:UIEdgeInsetsMake(0, 0, 0, 0)];
	}
	return _collectionViewFlowLayout;
}

- (UICollectionView *)FSDF2RVSDAVDFA {
	if (!_FSDF2RVSDAVDFA) {
		_FSDF2RVSDAVDFA = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:self.collectionViewFlowLayout];
		[_FSDF2RVSDAVDFA setBackgroundColor:[UIColor whiteColor]];
		[_FSDF2RVSDAVDFA setPagingEnabled:YES];
		[_FSDF2RVSDAVDFA setDelegate:self];
		[_FSDF2RVSDAVDFA setAllowsMultipleSelection:YES];
		[_FSDF2RVSDAVDFA setDataSource:self];
	}
	return _FSDF2RVSDAVDFA;
}

@end
